<?php

namespace app\api\validate;

use think\Validate;

class Feedback extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'content' => 'require',
        'phone' => 'require',

    ];
    /**
     * 提示消息
     */
    protected $message = [
        'content.require' => '请输入反馈内容！',
        'phone.require' => '请填写联系电话！',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['content','phone'],
    ];
    
}
